Skip to content

SettingsPropertyHelper.Set(T) method

Defined in

Type: SettingsPropertyHelper Namespace: Akavache.Settings.Core Assembly: Akavache.Settings.dll

Applies to

net11.0, net11.0-maccatalyst27.2, net11.0-android37.0, net11.0-windows10.0.19041, net11.0-macos27.2, net11.0-ios27.2, net10.0, net10.0-macos26.0, net10.0-android36.0, net10.0-maccatalyst26.0, net10.0-ios26.0, net10.0-windows10.0.19041, net48, net471, net47, net472, net481

public IObservable<RxVoid> Set(T value)

View source (opens in a new tab)

Summary: Writes a new value through to the underlying blob cache. The returned observable fires RxVoid once the persistent write has been accepted, or errors if the cache insert fails. The live stream is updated synchronously so any subsequent read of Value sees the new value immediately, regardless of whether the caller awaits the commit.

Parameters

NameTypeDescription
valueTThe new value.

Returns: IObservable (opens in a new tab) -- A one-shot observable that fires RxVoid when the persistent write commits.